home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
tutor
/
teach241.arj
/
TWCAI8.CHP
< prev
next >
Wrap
Text File
|
1992-12-07
|
15KB
|
491 lines
#OFF
%
#EF
#T15,1,Merging with the TW Editor
|JUMP START| |REFERENCE MANUAL| |MERGING| |CUT & PASTE| |ABOUT|
#HH,1,5,80,1,1,0
#R7
╓─┐ ╥ ╥ ∞ ╓─┐
╙─┐ ─╫─ ╓┐ ╥┐ ─╫─ ╥ ╥┐ ╓┐ ╟─┤
╙─┘ ╙┘ ╙┴ ╨ ╙┘ ╨ ╨└ ╙┤ ╙─┘
╙┘
┌╥┬┐ ╥ ╥ ╥
║┴│ ╓╖ ╥┐ ╓┐ ╓╖ ║ ─╫─ ╨
╨ ┴ ╙─ ╨ ╙┤ ╙─ ╨ ╙┘ ∞
Preview
~b~Y~I┌────────────────────────────────────────────────────────┐~z
~b~Y~I│ Chapter 8 mentions cut and paste, and discusses merging│~z
~b~Y~I│ with the TW editor, offers a one page summary, and a │~z
~b~Y~I│ one page list of merging steps. Invisible lines are │~z
~b~Y~I│ also discussed. About 25 screens. │~z
~b~Y~I└────────────────────────────────────────────────────────┘~z
#NE
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WH
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL| |CAITEST FILE|
#HH,1,5,80,1,1,0
#R9
▄█▀▀▀▀▀█▄ .∙ ~C~IMerging~Y~I is the process of combining two similar files,
▐█▐─ô═ô─▌█▌∙. usually with an editor or word processor. Is called
└┤ ┌┘ .∙ ~C~Imerging~Y~I, or ~C~Imerging from DOS~Y~I.
│█▀▀▀█│
└┬███┬┘ The ~W~ICAITeach Reference Manual~Y~I mentions a way to
▒▒▒▒ ■ ▒▒▒▒ combine the template files into a single file, and
then ~C~Icut and paste~Y~I. You may prefer this as it
allows one to select modified templates from within the working file,
and ~C~Icut and paste~Y~I those modified templates, rather than just merge
a blank template.
If that's a new idea for you take a look at ~W~IReference Manual~Y~I, ~C~IChapter 6~Y~I.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#HH,1,5,80,1,1,0
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL| |CAITEST FILE|
#HH,1,5,80,1,1,0
#AP,0,13
Merging, then, is putting two files together.
When constructing a CAITeach file this means
merging the various template files into a
master file that becomes the test file.
However, depending on one's style it may be
more convenient to cut and paste modified
templates within the editor than merge
blanks from DOS---just mentioned.
I'm going to talk about using the Tutorial-
Writer Editor for DOS merging. Once you
can DOS merge you can cut and paste.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL| |CAITEST FILE|
#HH,1,5,80,1,1,0
#R10
▄█▀▀▀▀▀█▄ .∙ This chapter has three big parts:
▐█▐─ô═ô─▌█▌∙.
└┤ ┌┘ .∙ ~F─~F─═ go thru merging steps in TW editor
│█▀▀▀█│
└┬███┬┘ ~F─~F─═ look at a couple of examples
▒▒▒▒ ■ ▒▒▒▒
~F─~F─═ look at a page summary, and a chart
showing merging steps
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#HH,1,5,80,1,1,0
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL| |CAITEST FILE|
#HH,1,5,80,1,1,0
#R7
First, let's find ~C~ITW~Y~I's editor. Below is an abstract of ~C~ITW~Y~I's
main menu. Study it and note the number of the option that accesses the
editor. Just the number.
╔════════════════════════════════════════════════════════╗
║ The Non-Programmer's Computer Toolkit ║
║ for Computer Assisted Instruction ║
║ ║
║ 1 Configure Tutorial 2 Create/Edit Chapter ║
║ 3 Create Menu 4 Utility Programs ║
║ 5 View Tutorial 6 Compile Chapter ║
║ 7 Instructions 8 Print Quick Reference ║
║ 9 Quit ║
╚════════════════════════════════════════════════════════╝
Question coming~F...~F
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#EF
#T15,1,Merging with the TW Editor
#QQ,R,2
What number accesses the Editor from
TW's Main Menu?
2
2
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL|
#HH,1,5,80,1,1,0
#R8
▄█▀▀▀▀▀█▄ .∙ After selecting the ~C~ICreate/Edit Chapter~Y~I one is
▐█▐─ô═ô─▌█▌∙. prompted for a file name. Enter the name of your new
└┤ ┌┘ .∙ file, and ~C~ITW~Y~I creates it, assigning the
│█▀▀▀█│ extension ~C~ICHP~Y~I.
└┬███┬┘
▒▒▒▒ ■ ▒▒▒▒ To ~F~C~Imerge~F~Y~I a file you must know the keystroke
(accessed from ~C~IHelp~Y~I, ~C~IBlock Commands~Y~I)
which is ~C~I[CONTROL KR]~Y~I, a very famous keystroke
from ~W~IWordstar~Y~I.
Once in the editor press [~C~IControl KR]~Y~I and the
editor prompts for a file name (~C~Iblock~Y~I) to merge. It merges the file
at the current cursor position.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#EF
#T15,1,Merging with the TW Editor
#AR,1,7
To merge a file press Control-KR and
answer the prompt
"Read block from file:"
File is brought in at your current
cursor position.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#EF
#T15,1,Merging with the TW Editor
#NE
#AR,1,6
If you change your mind after
entering a file name, [BACKSPACE]
it out, and enter [SPACE] to
cancel the name.
Back to merging ...
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL|
#HH,1,5,80,1,1,0
#R6
Abstract showing File to Merge: ~W~ITEST.CHP~Y~I
┌─────────────────────────────────────────────────────────┐
│F1-Help * * TutorialWriter * * - EDITOR │
│Read block from file: {T-TF.CHP │
└─────────────────────────────────────────────────────────┘
This abstract displayed at top of editor after ~C~I[Control KR]~Y~I,
and I typed file to merge, ~Y~ITEST.CHP~Y~I. After I press ~C~I[ENTER]~Y~I the
template ~Y~I{T-TF.CHP~Y~I will merged and become a permanent part of my
working It is merged wherever my cursor is when I press ~C~I[ENTER]~Y~I.
After the merge all I have to do is enter my question, check the
lines, save it, and test it at DOS. Have all of this summarized for you
after a couple of screens, and is the subject of previous chapters.
But, for now you need a convenient way to know your line position.
That's next.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE|
#HH,1,5,80,1,1,0
#R8
Abstract Showing Current Cursor Position
┌───────────────────────────────────────────────┐
│F1-Help * * TutorialWriter * │
│ ~FLine~F 5 Col 30 Insert │
└───────────────────────────────────────────────┘
~C~ITW~Y~I constantly updates the current line position as above. Each
time the cursor changes its line the number after ~C~ILine~Y~I changes.
Since ~C~ICAITeach~Y~I files work in sets of 16, the number after ~C~ILine~Y~I is
a required references.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE|
#HH,1,5,80,1,1,0
Abstract Show Cursor Position
┌─────────────────────────────────────┐
│ │ Here's a check .....
│ F1-Help * * TutorialW│
│ Line 5 Col 30 Insert │
│ 1 = Q 1 = 17 │ You have just merged ~W~I{T-STUDY.CHP~Y~I,
│ ; │ and everything is correct.
│ STUDY │
│ Citation or Comment line. │ What line was the cursor on when I
│ Rule:r...1....:....2....:....3....:.│ abstracted the figure?
│ │
│ █▄▄▄▄▄▄▄▄▄▄▄▄█ │ I'll be looking for a number.
│ █┤ Library ├█ │
│ █┤ OPEN! ├█ │ Question coming~F...~F
│ █▓▓▓▓▓▓▓▓▓▓▓▓█ │
└─────────────────────────────────────┘
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#EF
#T15,1,Merging with the TW Editor
#QQ,R,2
What line was the cursor on
in the previous frame.
5
5
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|CUT & PASTE| |MERGE| |REFERENCE MANUAL|
#HH,1,5,80,1,1,0
#R9
▄█▀▀▀▀▀█▄ .∙ Not much too it after you get the hang of it.
▐█▐─ô═ô─▌█▌∙.
└┤ ┌┘ .∙ After you've composed your question, check the
│█▀▀▀█│ ~C~ILine~Y~I number against your question number
└┬███┬┘ line. I always renumber the first part of
▒▒▒▒ ■ ▒▒▒▒ my question number line (~C~Iline 1 on all
templates~Y~I) immediately after merging.
~C~INumAid~Y~I helps me a lot here, but we all work differently.
Next, is a summary of these first several frames --- all put on
one frame for your review. ~C~IThen, I'll show the same thing~Y~I on a
table. You might way to ~W~Iscan~Y~I, and ~C~I[PageBack]~Y~I later.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#NC
#BO,30,12,55,16,2,1,1,3,14,4
So, prepare for another
laundry list...
%
#EF
#T15,1,Merging with the TW Editor
▄█▀▀▀▀▀█▄ .∙ Steps for Merging in ~W~ITW Editor~Y~I~F...~F
▐█▐─ô═ô─▌█▌∙.
└┤ ┌┘ .∙ 1. Create a new file by selecting the
│█▀▀▀█│ ~C~ICreate/Edit Chapter Option~Y~I. ~C~ITW~C~I
└┬███┬┘ assigns the extension ~C~ICHP~Y~I.
▒▒▒▒ ■ ▒▒▒▒
2. Do a ~C~IControl KR~Y~I keystroke. Hold down
the ~C~Icontrol~Y~I key, press the ~C~IK~Y~I and ~C~IR~Y~I.
3. Answer the prompt at the top of the screen by entering the name of the
template you wish to merge. A path may be necessary.
4. Observe the line locator, top left, which indicates the line on which
the cursor is located.
5. When ready for the next template locate your cursor, do another ~C~IControl KR~Y~I.
6. When finished check your line sequences, save the file, test with the
renumbering utility, test at DOS with ~W~I{TEACHTW~Y~I, and finally run from
within ~W~ITutorialWriter~Y~I with the ~C~I#U~Y~I command.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
#AR,0,9
Use Quick Reference and NumAid
as keyboard-side reference.
Add notes to master templates.
Your task is writing, not programming.
I've put it in a Table for you. Just
a summary of the last summary.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
~W~ISummary: Merging Sequence and Editing Table~Y~I
Create File in ~C~ITW~Y~I Editor Any name, use extension ~C~ICHP~Y~I
Position cursor File is merged at current cursor position
Execute ~C~IControl KR~Y~I See ~C~IHelp block~Y~. ~G~IF1 - Block Commands~Y~I
Compose question in template Template provides format. Delete unneeded.
Monitor ~C~Iline~Y~I Position ~C~ILine~Y~I position, upper left. If you delete
a line you must create another.
Check ~C~ILine~Y~I sequences ~W~IQuick Reference~Y~I and ~W~INumbering Aid~Y~I
Save File - Exit Check file at ~C~IDOS~Y~I with ~W~I{RENUM~Y~I.
Reedit Load into editor any other file. Merge templates
as needed.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
#AP,0,11
Helpful Hints ...
Keep Quick Reference and NumAid available.
If you can't remember something, add it to
the master template. Later, edit it out or
just leave it as Line 2, or line 5 (except
first five spaces) are not displayed or used.
Compose and test in units of five, or ten.
Test. Finally merge all into your final file.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#NC
#BO,30,12,55,16,2,1,1,3,14,4
Let's finish with
a question.
#EF
#T15,1,Merging with the TW Editor
#QQ,B,10
Enter the number of the false statement.
1. The keystroke for merging into the TW Editor is Control KR.
2. It is possible to create invisible lines at the end of
a file created in the TW Editor.
3. One is working in a file, and about to save. Line 49 should
start with the a semicolon
the TW Editor.
3
3
%
#EF
#T15,1,Merging with the TW Editor
#R5
▄█▀▀▀▀▀█▄ .∙
▐█▐─ô═ô─▌█▌∙. About those invisible lines~F...~F
└┤ ┌┘ .∙
│█▀▀▀█│ Assume your last was is ~G~INone~Y~I, and you wish to
└┬███┬┘ check for invisible lines. Here's how.
▒▒▒▒ ■ ▒▒▒▒
Put you cursor on the line with ~G~INone~Y~I
Press ~C~I[DownArrow]~Y~I twice. If the cursor drops more than
two lines you have invisible lines.
To delete, put your cursor on the line below ~G~INone~Y~I, do a bunch of
~G~IControl Y's~Y~I. If ~C~I[DownArrow]~Y~I lets you drop one row, do more ~G~IControl Y's~Y~I
and repeat until the ~C~I[DownArrow]~Y~I will not drop more two lines below ~G~INone~Y~I.
Of course if your editor has an ~C~Iend-of-file~Y~I marker you can see
space between your last line and the marker---which are what I've called
"invisible lines." Many editors have ~C~Iend-of-file~Y~I markers.
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
%
#EF
#T15,1,Merging with the TW Editor
|JUMP START| |REFERENCE MANUAL| |ABOUT|
#HH,1,5,80,1,1,0
#R10
▄█▀▀▀▀▀█▄ .∙ I think the ~G~IReference Manual~Y~I also has a few
▐█▐─ô═ô─▌█▌∙. comments worth reading on ~G~Imerging~Y~I.
└┤ ┌┘ .∙
│█▀▀▀█│
└┬███┬┘ This concludes this chapter.
▒▒▒▒ ■ ▒▒▒▒
#HH,1,24,80,1,1,0
#HF,1,25,80,25,176,1,0
#WP,H
#X